home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 September / Macworld (1997-09).dmg / Shareware World / Comms & Internet / Mail*Link SMTP⁄QM Installer / Disk 3 / Sources & Scripts / Scripts / hosts.script < prev    next >
Text File  |  1989-06-28  |  238b  |  16 lines

  1. :
  2. HOSTS=/etc/hosts
  3. NEWHOSTS=newhosts
  4. echo MacTCP format Hosts file will be in \"${NEWHOSTS}\".
  5. while :
  6. do
  7.     x=`line`
  8.     if [ $? -eq 0 ]
  9.     then
  10.         set $x
  11.         echo "$2.  A  $1 ; $3 $4 $5 $6 $7 $8" 
  12.     else
  13.         break;
  14.     fi
  15. done < ${HOSTS} > ${NEWHOSTS}
  16.